package com.xxxx.server.utils;

import com.xxxx.server.exceptions.ParamsException;
/**
 * @Author 乔通
 * @Date 2020/10/17 16:59
 * Created by IntelliJ IDEA 2020.1.
 * Project: yeb
 * Description：判断并抛出异常
 *              CRM项目的工具类
 */

public class AssertUtil {

    public  static void isTrue(Boolean flag,String msg){
        if(flag){
            throw  new ParamsException(msg);
        }
    }
}
